package com.xudow.app.dynamicstate_old.module.recommend;

import android.os.Bundle;
import android.support.annotation.NonNull;

import com.activeshare.edu.ucenter.models.base.Courses;
import com.jude.beam.expansion.list.BeamListActivityPresenter;
import com.xudow.app.dynamicstate_old.data.DynamicModel;


/**
 * Created by ske on 2016/6/11.
 */
public class PreferredCoursePresenter extends BeamListActivityPresenter<PreferredCourseActivity, Courses> {
    @Override
    protected void onCreate(@NonNull PreferredCourseActivity view, Bundle savedState) {
        super.onCreate(view, savedState);
        onRefresh();
    }

    @Override
    public void onRefresh() {
        DynamicModel.getInstance().getRecommentCourse(0, 10, 0, 0)
                .unsafeSubscribe(getRefreshSubscriber());
    }
}